﻿using BLL;

using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace yuejilalala
{
    public partial class AddStore : System.Web.UI.Page
    {
        StoreMarager Marager = new StoreMarager();
        Store store = null;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
           store= new Store();
            store.StoreName = tb_dp.Text;
            if (Marager.AddStore(store))
            {
                Response.Write("<script>alert('新增店家成功')<script>");
            }
        }
    }
}